package com.yy.json;

public class JSON {
    public static String toJsonString(Object object) {
        ObjectSerializer serializer = JsonConfig.getInstance().getSerializer(object.getClass());
        StringBuilder builder = new StringBuilder();
        serializer.serializer(JsonConfig.getInstance(), builder, object);
        return builder.toString();
    }
}
